/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.minhphuong.bll;

import com.minhphuong.dal.MauDAL;
import com.minhphuong.entities.Mau;
import java.util.List;

/**
 *
 * @author MINHPHUONG
 */
public class MauBLL {

    public static List<Mau> getAllMau() {
        return MauDAL.getAllMau();
    }
    public static boolean insertMau(Mau mau){
        mau.setMaM(HelperBLL.getNextID("Mau", "maM"));
        return MauDAL.insertMau(mau);
    }
    public static Mau getMauById(int id)
    {
        return MauDAL.getMauByID(id);
    }
}
